import request from '@/util/request'

export function GetList(data) {
	return request({
		url: '/admin/getList',
		method: 'post',
		data: data
	})
}

export function AdminList() {
	return request({
		url: '/admin/adminList',
		method: 'get'
	})
}

export function GetInfo(id) {
	return request({
		url: '/admin/getById/' + id,
		method: 'get'
	})
}


export function Delete(ids) {
	return request({
		url: '/admin/delete',
		method: 'post',
		data: ids
	})
}

export function Insert(data) {
	return request({
		url: '/admin/insert',
		method: 'post',
		data: data
	})
}

export function Update(data) {
	return request({
		url: '/admin/update',
		method: 'post',
		data: data
	})
}

export function Login(data) {
	return request({
		url: '/admin/login',
		method: 'post',
		data: data
	})
}

export function Reset(id) {
	return request({
		url: '/admin/reset/'+ id,
		method: 'get'
	})
}
